<?php

use app\handler\RequestHandler;
use svrlog\LogComponent;

class BookImportSvr extends TcpServcie
{
    public function __construct($conf)
    {
        parent::__construct($conf);
    }

    public function onReceive($serv, $fd, $from_id, $data)
    {
        $request = new RequestHandler($serv, $fd, $data);
        $request->run();
    }

    public function onTask($serv, $task_id, $from_id, $data)
    {

    }

    public function onFinish($serv, $task_id, $data)
    {

    }
}